#pragma 
#include<iostream>
using namespace std;
#include<stdlib.h>
#include<unistd.h>
void Download()
{
    cout << "download!" << endl;
}
void Print()
{
    cout << "print!" << endl;
}
void Flush()
{
    cout << "flush!" << endl;
}
typedef void (*task)();
#define NUM 3
task tasks[NUM];
void loadTask()
{
    srand(time(nullptr) ^ getpid());
    tasks[0] = Download;
    tasks[1] = Print;
    tasks[2] = Flush;
}
void exec(int number)
{
    if(number<0||number>2)
    {
        return;
    }
    tasks[number]();
}
int selectTask()
{
    return rand() % NUM;
}